//pack11jsclass

var Admin = new admin();

function admin() {

    this.ObjectDelete = function(id) {
        if (!confirm("Удалить объект?")) return false;
        if(AjaxManager.locked) return false;

        AjaxManager.url="?response=ObjectRemoveResponder";
        AjaxManager.variables.push("id="+id);
        AjaxManager.backHandler=Admin.DeleteHandler;
        AjaxManager.callServer("deleting object "+id);

    }

    this.DeleteHandler = function(text,xml) {
        alert(text);
    }
}